<template>
  <div id="pathto">
  </div>
</template>

<script>

  export default{
    name: 'pathto',
    created: function () {
      if (sessionStorage.getItem('pathtourl').indexOf('?') > -1) {
        window.location.href = sessionStorage.getItem('pathtourl') + '&data=' + encodeURI(localStorage.userInfo)
      } else {
        window.location.href = sessionStorage.getItem('pathtourl') + '?data=' + encodeURI(localStorage.userInfo)
      }
      // console.log(sessionStorage.getItem('pathtourl') + '?data=' + encodeURI(localStorage.userInfo))
      // window.location.href = sessionStorage.getItem('pathtourl') + localStorage.userInfo
    }
  }
</script>
